home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 351-375 / disk_352 / treewalk / treewalk.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  1KB  |  42 lines

  1. /*
  2.  * header file for users of the treewalk function.
  3.  *
  4.  *    Copyright (C) 1989  Mike Meyer
  5.  *
  6.  *    This program is free software; you can redistribute it and/or modify
  7.  *    it under the terms of the GNU General Public License as published by
  8.  *    the Free Software Foundation; either version 1, or any later version.
  9.  *
  10.  *    This program is distributed in the hope that it will be useful,
  11.  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  *    GNU General Public License for more details.
  14.  *
  15.  *    You should have received a copy of the GNU General Public License
  16.  *    along with this program; if not, write to the Free Software
  17.  *    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  */
  19.  
  20. #ifndef    EXEC_TYPES_H
  21. #include <exec/types.h>
  22. #endif
  23.  
  24. #ifndef LIBRARIES_DOS_H
  25. #include <libraries/dos.h>
  26. #endif
  27.  
  28. /*
  29.  * A prototype for treewalk.
  30.  */
  31. int treewalk(BPTR, int (*)(BPTR, struct FileInfoBlock *), int) ;
  32.  
  33. #define TREE_PRE    0x01            /* Visit dirs preorder */
  34. #define TREE_POST    0x02            /* Visit dirs postorder */
  35. #define TREE_BOTH     (TREE_PRE|TREE_POST)
  36.  
  37. /*
  38.  * return values for visitfunc. Must return one of these...
  39.  */
  40. #define TREE_STOP    TRUE
  41. #define TREE_CONT    FALSE
  42.